package com.nxm.services;

import com.nxm.dao.one.UserMapper;
import com.nxm.dao.two.UserTwoMapper;
import com.nxm.model.one.User;
import com.nxm.model.two.UserTwo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestService {

    @Autowired
    private UserTwoMapper userTwoMapper;
    @Autowired
    private UserMapper userMapper;

    public UserTwo getById(Long id){
        return userTwoMapper.selectByPrimaryKey(id);
    }

    public User getByIdTwo(Long id){
        return userMapper.selectByPrimaryKey(id);
    }
}
